package com.bkgy.modular.tbVoiceAlarm.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author
 * @version 1.0
 * @ClassName TbVoiceAlarm
 * @date 2023/6/19 9:59
 */
@Data
@TableName("TB_VOICE_ALARM")
public class TbVoiceAlarm {

    @ExcelProperty("发送者")
    @ColumnWidth(20)
    private String sender;

    @ExcelProperty("报警内容")
    @ColumnWidth(20)
    private String msg;

    @ExcelProperty("中间件报警对应变量名称")
    @ColumnWidth(20)
    private String tag_name;

    @ExcelProperty("出发频率")
    @ColumnWidth(20)
    private Double times;

    @ExcelProperty("语音报警时刻")
    @ColumnWidth(20)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Timestamp alarm_time;
}
